package com.qk.manangement.service;

import com.qk.common.response.BusinessGetByIdResponse;
import com.qk.common.response.BusinessUpdateResponse;
import com.qk.common.response.PageResult;
import com.qk.entity.pojo.Business;
import com.baomidou.mybatisplus.extension.service.IService;
import com.qk.entity.request.business.BusinessPageRequest;
import com.qk.entity.request.business.BusinessPoolRequest;

/**
 *
 */
public interface BusinessService extends IService<Business> {

    PageResult pageList(BusinessPageRequest businessPageRequest);

    boolean add(Business business);

    boolean assign(Long businessId, Long userId);

    boolean back(Long id);

    boolean toCustomer(Integer id);


    BusinessGetByIdResponse getBusinessById(Integer id);

    boolean businessUpdate(BusinessUpdateResponse business);

    PageResult businessPoolList(BusinessPoolRequest businessPoolRequest);
}
